package com.gitee.feizns.itrip.personal.biz.mapper;

import com.gitee.feizns.itrip.personal.biz.entity.ao.ForAcceptSearchHotelRoomByHotel;
import com.gitee.feizns.itrip.personal.biz.entity.vo.ForViewPreOrderInfo;
import com.gitee.feizns.itrip.personal.biz.entity.vo.ForViewSearchHotelRoomByHotel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author feizns
 * @since 2019/1/8 0008
 */
public interface BizHotelRoomMapper {

    /**
     *
     * @param search
     * @return
     */
    List<Long> queryHotelRoomByHotel(ForAcceptSearchHotelRoomByHotel search);

    /**
     * 查询房间信息
     * hotelId, hotelName, roomId
     * @param roomId
     * @return
     */
    ForViewPreOrderInfo queryHotelName(Long roomId);

    /**
     * 根据很难多房间id，获取很多房间
     * @param ids
     * @return
     */
    List<ForViewSearchHotelRoomByHotel> getRooms(@Param("ids") Long... ids);

    /**
     * 获取指定房间的价格
     * @param roomId
     * @return
     */
    Double getPrice(Long roomId);

}

